package com.xxxy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxy.model.KnowledgePoint;
import com.xxxy.model.Question;
import com.xxxy.response.QuestionDetailResponse;
import com.xxxy.response.QuestionResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sjh
 * @date 2022/2/26 14:51
 */
public interface QuestionDao extends BaseMapper<Question> {

    List<QuestionResponse> list(@Param("type") Integer type, @Param("knowledgePoint")KnowledgePoint knowledgePoint);

    List<Question> listByIdArr(@Param("idArr") String[] idArr);

    QuestionDetailResponse getQuestionById(@Param("questionId") Integer questionId);
}
